<!DOCTYPE html>
<html>
<head>
	<title><%=title%></title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
	<link rel="stylesheet" type="text/css" href="../../lib/bootstrap/dist/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="../../css/common.css">
	<link rel="stylesheet" type="text/css" href="../../css/product/mortgate.css">
</head>
<body>
	<div class='container' ng-app="webapp" ng-controller="MortgateController">
		<input type='hidden' ng-model="menuId" value="<%=menuId%>" id="menuId">
		<div ng-include="'../../views/header.html'"></div>
		<div class='row mortgateTool' ng-show="boxSta">
			<span class='col-xs-6' ng-click="scrToogle(0)" ng-if="roleOperateType.r0==0"><i class="glyphicon glyphicon-plus"></i><em class="toolLabel">新增产品</em><i class='glyphicon glyphicon-chevron-{{addProIcon}} addIcon'></i></span>
			<span class='col-xs-6' ng-click="scrToogle(2)"><i class="glyphicon glyphicon-search"></i><em class="toolLabel">条件筛选</em><i class='glyphicon glyphicon-chevron-{{queryProIcon}} queryIcon'></i></span>
		</div>
		<div class='mainWarpper'>
			<mortgate-edit type="1" ng-model="nullModel" ng-repayment="dataObject.repayment" ng-building="dataObject.building" ng-credit="dataObject.credit" ng-lendingType="dataObject.lendingType" ng-lendingAsk="dataObject.lendingAsk" ng-trade="dataObject.trade" ng-noteAffair="dataObject.noteAffair" ng-show="scrSta"></mortgate-edit>
			<div ng-if="result.length <= 0" class="noResult">
				未查询到相关产品哦！
			</div>
			<div class='mortage-box' ng-show="boxSta" ng-repeat="list in result">
				<remove-box ng-model="list" ng-if="roleOperateType.r1==1"></remove-box>
				<edit-box ng-model="list" ng-if="roleOperateType.r2==2"></edit-box>
				<toogle-click ng-model="list" tcs="arrowTip-down"></toogle-click>
				<p class='lineData row clearfix'>
					<span class='col-xs-4 backName' ng-bind="list.BACK_NAME"></span>
					<span class='col-xs-4' ng-switch on="list.ACCEPT_SMALL_MONEY">
						<em ng-switch-when="0" class='label label-danger'>禁止小额</em>
						<em ng-switch-when="1" class='label label-success'>支持小额</em>
						<em class='label label-warning' ng-switch-default>需满足条件</em>
					</span>
					<span class='col-xs-4'>
						<view-size classname="interest" min="{{list.MIN_INTEREST}}" max="{{list.MAX_INTEREST}}" unit="厘"></view-size>
					</span>
				</p>
				<p class='lineData row clearfix'>
					<span class='col-xs-7'><em class='explan'>年龄：</em>
					<view-size classname="c-gray" min="{{list.MIN_AGE}}" max="{{list.MAX_AGE}}" unit="岁"></view-size>
					</span></span>
					<span class='col-xs-5'><em class='explan'>楼龄：</em>
					<view-mono values="{{list.BUILDING_AGE}}" unit="年" classname="c-gray"></view-mono>
					</span></span>
				</p>
				<p class='lineData row clearfix'>
					<span class='col-xs-7'><em class='explan'>放款金额：</em>
					<view-size classname="c-gray" min="{{list.MIN_LOAN_MONEY}}" max="{{list.MAX_LOAN_MONEY}}" unit="万"></view-size>
					</span></span>
					<span class='col-xs-5'><em class='explan'>年限：</em>
					<view-size classname="c-gray" min="{{list.MIN_CREDIT_LIMIT}}" max="{{list.MAX_CREDIT_LIMIT}}" unit="年"></view-size>
					</span></span>
					
				</p>
				<p class='lineData row clearfix'>
					<span class='col-xs-7'><em class='explan'>批复时间：</em>
					<view-size classname="c-gray" min="{{list.MIN_REPLY_TIME}}" max="{{list.MAX_REPLY_TIME}}" unit="小时"></view-size>
					</span>
					<span class='col-xs-5'>
						<em class='explan'>是否考察：</em>
						<span ng-switch on="list.INSPECT">
							<em ng-switch-when="1" class='c-gray'>不考察</em>
							<em ng-switch-when="2" class='c-gray'>考察</em>
							<em ng-switch-when="3" class='c-gray'>经营考察</em>
							<em class='c-gray' ng-switch-default>看信用</em>
						</span>
					</span>
				</p>
				<p class='lineData row clearfix'>
					<span class='col-xs-12'><em class='explan'>还款方式：</em><mortgate-box ng-model="list.REPAYMENT_WAY" way="repayment"></mortgate-box></span>
				</p>
				<div class='toogle none'>
					<p class='lineData row clearfix'>
						<span class='col-xs-12'><em class='explan'>禁入行业：</em><mortgate-box ng-model="list.NOT_ENTER_TRADE" way="trade"></mortgate-box></span>
					</p>
					<p class='lineData row clearfix'>
						<span class='col-xs-12'><em class='explan'>房产类型：</em><mortgate-box ng-model="list.BUILDING_TYPE_ID" way="building"></mortgate-box></span>
					</p>
					<p class='lineData row clearfix'>
						<span class='col-xs-12'><em class='explan'>征信要求：</em><mortgate-box ng-model="list.CREDIT_ASK_ID" way="credit"></mortgate-box></span>
					</p>
					<p class='lineData row clearfix'>
						<span class='col-xs-12'><em class='explan'>注意事项：</em><mortgate-box ng-model="list.NOTE_AFFAIR_ID" way="noteAffair"></mortgate-box></span>
					</p>
					<p class='lineData row clearfix'>
						<span class='col-xs-12'><em class='explan'>放款方式：</em><mortgate-box ng-model="list.LENDING_TYPE_ID" way="lendingType"></mortgate-box></span>
					</p>
					<p class='lineData row clearfix'>
						<span class='col-xs-12'><em class='explan'>放款前要求：</em><mortgate-box ng-model="list.LENDING_ASK_ID" way="lendingAsk"></mortgate-box></span>
					</p>
				</div>
			</div>
		</div>

		<!-- Modal -->
		<div class="modal fade bs-example-modal-sm" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
		  <div class="modal-dialog modal-sm-samll" role="document">
		    <div class="modal-content">
		      <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		        <h4 class="modal-title" id="myModalLabel">&nbsp;</h4>
		      </div>
		      <div class="modal-body">
		        您确定要删除本产品吗？
		      </div>
		      <div class="modal-footer">
		        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
		        <button type="button" class="btn btn-primary" id="sureDel">确定</button>
		      </div>
		    </div>
		  </div>
		</div>

	</div>
	<script type="text/javascript" src="../../lib/angular/angular.js"></script>
	<script type="text/javascript" src="../../lib/jquery/dist/jquery.min.js"></script>
	<script type="text/javascript" src="../../lib/bootstrap/dist/js/bootstrap.js"></script>
	<script type="text/javascript" src="../../webapp.js"></script>
	<script type="text/javascript" src="../../services/handleRequest.js"></script>
	<script type="text/javascript" src="../../services/mortgate.client.service.js"></script>
	<script type="text/javascript" src="../../controllers/mortgate.client.controller.js"></script>
</body>
</html>